from pydantic import BaseModel

class UserBase(BaseModel):
    username: str
    chinese_name: str
    source: int
    department: str
    position: str
    phone: str

class UserCreate(UserBase):
    password: str

class LoginUser(BaseModel):
    username: str
    password: str

class User(UserBase):
    id: int

    class Config:
        orm_mode = True